--[[ 
    低压蜂鸣器
 ]]

--==============IMPORT================
local pilib = require("libs/pilib")
local event =  require("libs/event")
local PIN_MODE = PIN_MODE
--==============IMPORT================
local lowbuzzer = {}

function lowbuzzer.execute(pinidx)  
    pilib.pinMode(pinidx, PIN_MODE["OUTPUT"])
    for i = 1, 5 do 
        pilib.digitalWrite(pinidx, PIN_MODE["LOW"])
        pilib.delay(0.1 * 1000)
        pilib.digitalWrite(pinidx, PIN_MODE["HIGH"])
        pilib.delay(0.1 * 1000)
    end
end 

return lowbuzzer



